<style  lang="scss">
	@import url('../static/css/projectexercisestwo.css');
</style>
<template>
<!-- 公共头部 -->
		<view>
			<my-header :title="mentalarithmetic" ></my-header>
		</view>
	 <!-- 骨架 -->
	 <uni-skeleton animated :loading="loading"></uni-skeleton>
	<!-- 项目 -->
	<view class="content"  v-show='!loading'>
		<view class="projectexercisestwo">
			<view class="projectexercisestwo_top">
				<view class="projectexercisestwo_top_a">{{auxiliary}}<text>{{subjectanswer}}</text>{{topic}}</view>
				<view class="success"><text class="mr5">正确</text><text>{{score/getscore}}</text></view>
				<view class="error"><text class="mr5">错误</text><text>{{subjectanswer-score/getscore-1}}</text></view>
				<view class="projectexercisestwo_top_b"><text>{{countdownstr}}：<text class="time">{{time}}:{{second}}</text></text></view>
				<view  @touchstart="submin" class="submit">提交</view>
			</view>
			<view class="projectexercisestwo_input">
				{{randnumberstr}}
			</view>
			<view class="projectexercisestwo_exercises">
				<input class="uni-input" type="number" disabled="true" :placeholder="answertitle" :value="text" />
			
			</view>
			
			<view class="answertitletip">{{answertitletip}}</view>
 
			<view class="rattle">
				<view  class="rattle_view">
					<view :index="1"    @touchstart="number(1)">
							<text class="text">1</text>
					</view>
					<view  :index="2"    @touchstart="number(2)">
							<text class="text">2</text>
					</view>
					<view  :index="3"    @touchstart="number(3)">
						<text class="text">3</text>
					</view>
					<view  :index="4"    @touchstart="number(4)">
						<text class="text">4</text>
					</view>
					<view  :index="5"    @touchstart="number(5)">
						<text class="text">5</text>
					</view>
					<view :index="6"    @touchstart="number(6)">
						<text class="text">6</text>
					</view>
					<view  :index="7"    @touchstart="number(7)">
						<text class="text">7</text>
					</view>
					<view  :index="8"    @touchstart="number(8)">
						<text class="text">8</text>
					</view>
					<view  :index="9"    @touchstart="number(9)">
						<text class="text">9</text>
					</view>
					<view :index="77"    @touchstart="number(77)">
						<text class="text">・</text>
					</view>
					<view :index="0"    @touchstart="number(0)">
						<text class="text">0</text>
					</view>
					
					<view :index="99"  v-if='ifdowmpage'     @touchstart="number(99)">
						<text class="text">{{nextproblem}}</text>
					</view>
					
					<view :index="999"  v-if='!ifdowmpage'    @touchstart="number(999)">
						<text class="text">{{loadingtitle}}</text>
					</view>
					
				</view>
			</view>
		</view>
	</view>
	<view  @touchstart="number(88)" class="cleardata">{{clearqueue}}</view>
</template>
<script type="module" src="../static/js/projectexercisestwo.js"></script>